different method for database addition