fixed search for postgres
fixed alignment