added first impl of database with working creating login and apply