Database setup and the code can run