add methods connection for database