Reconfigured to a createdatabse(bool) function