Fixed error opening database if path was not created.
Created DB structure.