First partial implementation of "fromDatabase"