Task: Implement a Python module at /app/db_utils.py (or /app/db_utils/ as a package) that provides simple SQLite-backed utilities for writing and reading pandas DataFrames.
What to implement
A Python module named db_utils with the following two functions:
Connect to the SQLite database located at sqlite_path. If the file does not exist, it should be created.
Write the provided DataFrame (df) to a table named table_name using pandas’ to_sql.
Use index=False when writing.
Respect the if_exists policy passed in (values supported by tests: 'replace' and 'append'). If an unsupported value is provided, raise a ValueError with a clear message.
Read the entire table named table_name into a pandas DataFrame (without requiring an ORM). Implement this by executing a SELECT * FROM table_name and using pd.read_sql_query.
Return the resulting DataFrame.
Close the database connection.
Additional requirements and expectations
The module must be importable as import db_utils (i.e., /app/db_utils.py should exist and be importable in the test environment).
The functions should be robust to minor edge cases but keep implementation minimal and focused on the described functionality.
Include clear docstrings for both functions describing inputs, outputs, and behavior.
Do not add external dependencies beyond pandas and the Python standard library (sqlite3).
Location
Implement the module in /app/db_utils.py (or as /app/db_utils/ with an init.py exposing the same API, but the tests expect /app/db_utils.py).