Initialize a new database connection and return the pool object.

    Saves a reference to that instance in a module-level variable, so applications with only one database
    can just call this function and not worry about pool objects.

def initialize(name='', pool_size=10, host='localhost', password='', port=5432, user=''):
    """Initialize a new database connection and return the pool object.

    Saves a reference to that instance in a module-level variable, so applications with only one database
    can just call this function and not worry about pool objects.
    """

    global pool
    instance = Pool(name=name, pool_size=pool_size, host=host, password=password, port=port, user=user)
    pool = instance
    return instance