Added Database Functions