Write-lock url table while adding one, rename 'hash' to 'slug'
Code cleanup, switch from random to drand48
Cleanup db.c, fix memory leak