Use base manager to handle sqlalchemy error

Also create duplicated error #42 #43