Allow an existing connection pool to be used
Create tables in a separate function