Spring security complete code with database script