Make path for database work automatically