Added a separate module to handle database requests.