Data: Get stories from database

Add a stories/byProjectId view to the database,
and get those stories to the client when called upon.
Fix: Properly update first story when moved

We were using the wrong object to find the first
story after moving it.