removed superfluous db access