Added some functions for reading the database
Added some functions for reading the database