Class for connect to any database