create data directory and database sql