fixed database yml in config file, added model associations