modified functionality of db. Forced to connect before exposing other functions