progrmatically make database directory if it does not exist