better database creation