made models and initiated database