Not always connect to database