Moved all tables from source code to SQL database