Added prototype for database interaction