Create databases directory if necessary