don't initialize postgres if not needed
add check for possible domains