add function to convert a dataframe into a SQLite3 table and the other way