Added implementations to database classes.