added a function to write contact data to an SQLite database using sqldf/RSQLite packages