Tracks added to the database

Still needs a lot of optimization because its really slow. So, we need
to work on that.