Fixed bug: tables not initializing correctly due to SQL command error.