Made all attributes attributes

Made all attributes attributes over functions for database methods
Fixed bug finding story by id