fixed some hostname setup
fixed databases structure