created table and prepared statements