Saving to database now works