Fixed misnamed functions
Read resource from DB