Added some basic database models and implemented password checking