Made perp.js use the database

Updated perp.js so it's going to use the database parameter from the
'mysql_conf' file