Init home controller with pgsql