added login script
added db schema