sure, figure out the table schema then pipe the sql commands you want into a shell script. Database is /var/log/CPView_db or something like that.