Replace sqlite3 with postgresql
Replace with minified js version
Update to postgresql