Make database connection server-independent