(Server/Database) Fix return type of connect