added database and shit