be able to connect database and insert a record