Add to db via ajax

Added comments for usage