adding to database working