Changes database from sqlite3 to postgresql; updates user model to find names by partial strings