got some database logic working to pass array of averages to js
Merge branch 'databaseSyncing'

merging database backend syncing branch