testing saving to database