add reuse for empty function in db, orm registering
fix code style for PEP8