first database version

added login to database