Updated database tables and DAO functions to store necessary information