fixing my messup with db commit