Added pool size configuration

Added a configuration option for database pool size