<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_database_engine(user, password, database, host, port):
 """Create a database engine"""


    driver = 'mysql+pymysql'
    url = URL(driver, user, password, host, port, database,
              query={'charset': 'utf8mb4'})
    return create_engine(url, poolclass=QueuePool,
                         pool_size=25, pool_pre_ping=True,
                         echo=False)