SQL code to create database tables