Created QSQL objects and created setup function.