added db config and code for authentication