Added auto table selection to the Database adapter and created an Insert function