Added some base SQL statements and prepared statements for all types of queries in Postgres