Spring security example using authentication from database.