Test database creation