Added some basics functions to retrieve info from the DB