Added params, param verification, access to database, and bug corrections