<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connect_db(database_name=":memory:"):
 """ Connect lazy_record to the database at the path specified in +database_name+. """

    db = repo.Repo.connect_db(database_name)
    base.Repo.db = db
    query.Repo.db = db