It tries to use database during class initialisation. removed it for now - not sure if it's important...