Added sql functions for performing add download and get latest download
Added basic connectivity to SQL functions and data
Reworked migrations, increased timestamps precision