Fixed clearing search input. Refactored database connection. Got unexpectedly finishing application...