album db function and bugfix