Added Database functions