Finalised db script and added downloads graph