Changed database creation method and added password