clean up db.php, add user support in db (until supported: constant name)