Added automatic database creation

Database connection variable: 'connection'