fixed sql command, added searching
added database to ignore file