getAllRecords from db implemented