add DB suport, Spring security and some configuration