make static functions properly static
update todo
new Db function to set sequences to the end