Setting up for database