First unstable version of rewrite

add default values statement on postgres adapter
add distinction for model save (update and insert)
begin refactor