Added DB based authentication