Spring security work with a DB