completely finished diger form, fixed issues with the database as well