Cleaned up code, extended features and updated DB

Added utility static methods for array sorting etc
Updated views with correct data
Still struggling with Eloquent relations
Added migration to insert profile_id field in clicks. Not sure yet how
to properly make use of this.