Create DBops.php

Handles DB connect, DB queries and authentication. Separate class to include methods for DB operations.