changed database insert command