Added DataBase functionality and Password encryption