Use DatabaseManager class instead of raw db queries everywhere