Functions v 0.25

Inserted into Activities table,
fixed findPosts to return ids rather than what getPostsByUser returns.

tl;dr
got rid of redundancies and inserted into activities