New file added for database operations