register adding to db