added insert for database