creating connection and database,adds new records to table