adding and/or interface to gui and fixing minor problems in ui and db.php