db support

new records are now added to databse