renamed htaccess and added database check