Added functionality for extra data adding to database