Added Database layer