Added new functions to get the database size