connect to database
add record
get records
update records
update records