Database existence handling, creation, improvments