Repairing database connection and add find method