create, update, delete and get records from database