moved database to models
wrote code to get users and passwords