database and everything working