Change sqlite to Postgresql and build simple search form