add record to db